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

Issue 2166813005: Remove layoutObject() dependency from HTMLPlugInElement::layoutObjectIsFocusable(). (Closed)

Created:
4 years, 5 months ago by tkent
Modified:
4 years, 5 months ago
Reviewers:
kochi
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove layoutObject() dependency from HTMLPlugInElement::layoutObjectIsFocusable(). - Introduce HTMLPlugInElement::m_pluginIsAvailable. It is equivalent to: layoutObject() && layoutObject()->isEmbeddedObject() && !layoutEmbeddedItem().showsUnavailablePluginIndicator() - Remove LayoutEmbeddedObject::m_showsUnavailablePluginIndicator. Add PluginAvailable state to PluginUnavailabilityReason, and rename it to PluginAvailability. We can replace m_showsUnavailablePluginIndicator with |m_pluginAvailability != PluginAvailable|. This CL should not have any behavior changes. BUG=630066 Committed: https://crrev.com/d0e00543bb2990a7478964be5fc613181bbdd249 Cr-Commit-Position: refs/heads/master@{#406786}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename PluginUnavailabilityReason to PluginAvailability #

Total comments: 2

Patch Set 3 : comment grammar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -23 lines) Patch
M third_party/WebKit/Source/core/html/HTMLPlugInElement.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp View 1 4 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp View 1 3 chunks +10 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/api/LayoutEmbeddedItem.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
tkent
kochi@, would you review this please?
4 years, 5 months ago (2016-07-21 01:50:36 UTC) #7
kochi
https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp File third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp (right): https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp#newcode76 third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp:76: } It seems compilers are complaining that on cases ...
4 years, 5 months ago (2016-07-21 02:09:56 UTC) #8
tkent
https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp File third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp (right): https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp#newcode76 third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp:76: } On 2016/07/21 at 02:09:56, kochi wrote: > It ...
4 years, 5 months ago (2016-07-21 02:21:07 UTC) #9
kochi
https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp File third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp (right): https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp#newcode76 third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp:76: } On 2016/07/21 02:21:07, tkent wrote: > On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 02:27:21 UTC) #10
tkent
Uploaded a new CL. Please take another look at it. https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp File third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp (right): https://codereview.chromium.org/2166813005/diff/1/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp#newcode76 ...
4 years, 5 months ago (2016-07-21 04:08:26 UTC) #14
kochi
lgtm
4 years, 5 months ago (2016-07-21 05:03:29 UTC) #17
kochi
https://codereview.chromium.org/2166813005/diff/20001/third_party/WebKit/Source/core/html/HTMLPlugInElement.h File third_party/WebKit/Source/core/html/HTMLPlugInElement.h (right): https://codereview.chromium.org/2166813005/diff/20001/third_party/WebKit/Source/core/html/HTMLPlugInElement.h#newcode145 third_party/WebKit/Source/core/html/HTMLPlugInElement.h:145: // avoid to access |layoutObject()| in layoutObjectIsFocusable(). nit: avoid ...
4 years, 5 months ago (2016-07-21 05:04:23 UTC) #18
tkent
https://codereview.chromium.org/2166813005/diff/20001/third_party/WebKit/Source/core/html/HTMLPlugInElement.h File third_party/WebKit/Source/core/html/HTMLPlugInElement.h (right): https://codereview.chromium.org/2166813005/diff/20001/third_party/WebKit/Source/core/html/HTMLPlugInElement.h#newcode145 third_party/WebKit/Source/core/html/HTMLPlugInElement.h:145: // avoid to access |layoutObject()| in layoutObjectIsFocusable(). On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 05:07:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2166813005/40001
4 years, 5 months ago (2016-07-21 05:07:38 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-21 06:26:49 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 06:30:03 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d0e00543bb2990a7478964be5fc613181bbdd249
Cr-Commit-Position: refs/heads/master@{#406786}

Powered by Google App Engine
This is Rietveld 408576698