Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1328283005: Add support for multiple text decorations with same line positioning (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 { 906 {
907 return style()->visitedDependentColor(colorProperty); 907 return style()->visitedDependentColor(colorProperty);
908 } 908 }
909 909
910 // Used only by Element::pseudoStyleCacheIsInvalid to get a first line style based off of a 910 // Used only by Element::pseudoStyleCacheIsInvalid to get a first line style based off of a
911 // given new style, without accessing the cache. 911 // given new style, without accessing the cache.
912 PassRefPtr<ComputedStyle> uncachedFirstLineStyle(ComputedStyle*) const; 912 PassRefPtr<ComputedStyle> uncachedFirstLineStyle(ComputedStyle*) const;
913 913
914 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; 914 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const;
915 915
916 struct AppliedTextDecoration {
917 STACK_ALLOCATED();
918 Color color;
919 TextDecorationStyle style;
920 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { }
921 };
922
923 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false);
924
925 // Return the LayoutBoxModelObject in the container chain which is responsib le for painting this object, or layout view 916 // Return the LayoutBoxModelObject in the container chain which is responsib le for painting this object, or layout view
926 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation' 917 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation'
927 // methods. 918 // methods.
928 const LayoutBoxModelObject& containerForPaintInvalidationOnRootedTree() cons t; 919 const LayoutBoxModelObject& containerForPaintInvalidationOnRootedTree() cons t;
929 920
930 // This method will be deprecated in a long term, replaced by containerForPa intInvalidationOnRootedTree. 921 // This method will be deprecated in a long term, replaced by containerForPa intInvalidationOnRootedTree.
931 const LayoutBoxModelObject* containerForPaintInvalidation() const; 922 const LayoutBoxModelObject* containerForPaintInvalidation() const;
932 923
933 const LayoutBoxModelObject* adjustCompositedContainerForSpecialAncestors(con st LayoutBoxModelObject* paintInvalidationContainer) const; 924 const LayoutBoxModelObject* adjustCompositedContainerForSpecialAncestors(con st LayoutBoxModelObject* paintInvalidationContainer) const;
934 bool isPaintInvalidationContainer() const; 925 bool isPaintInvalidationContainer() const;
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 void showTree(const blink::LayoutObject*); 1864 void showTree(const blink::LayoutObject*);
1874 void showLineTree(const blink::LayoutObject*); 1865 void showLineTree(const blink::LayoutObject*);
1875 void showLayoutTree(const blink::LayoutObject* object1); 1866 void showLayoutTree(const blink::LayoutObject* object1);
1876 // We don't make object2 an optional parameter so that showLayoutTree 1867 // We don't make object2 an optional parameter so that showLayoutTree
1877 // can be called from gdb easily. 1868 // can be called from gdb easily.
1878 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1869 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1879 1870
1880 #endif 1871 #endif
1881 1872
1882 #endif // LayoutObject_h 1873 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698